<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
<!--    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>-->
    <script src="js/vue.js"></script>
</head>
<body>
    <div id="d1">
        <p>{{id}}</p>
        <p>{{name}}</p>
        <p>{{str}}</p>
        <p>{{un}}</p>
        <p>{{num}}</p>
        <p>{{1}}</p>
        <p>{{'abc'}}</p>
        <p>{{1+6}}</p>
        <p>{{person.name}}</p>
        <p>{{hobbies}}</p>
        <p>{{hobbies[1]}}</p>
        <p>{{new Date()}}</p>
        <p>{{Math.random()}}</p>
    </div>
</body>
<script>
    new Vue({
        el: "#d1",
        data:{
            id:1,
            name:"abc",
            str:null,
            un:undefined,
            num:NaN,
            person:{
                name:"aaa",
                age:23
            },
            hobbies:['吃','玩','睡']
        }
    });
</script>
</html>